﻿using KWT.DRG_DIP.Common;
using KWT.DRG_DIP.DO.System;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KWT.DRG_DIP.PO.Basic
{
    /// <summary>
    /// 策略字典表
    /// </summary>
    public class Sys_PolicyEnum:Audit
    {
        [Key]
        public string SPID { get; set; }
        /// <summary>
        /// 组
        /// </summary>
        public string Group { get; set; }
        /// <summary>
        /// 代码1
        /// </summary>
        public string Code1 { get; set; }
        /// <summary>
        /// 代码2
        /// </summary>
        public string Code2 { get; set; }
        /// <summary>
        /// 代码3
        /// </summary>
        public string Code3 { get; set; }
        /// <summary>
        /// 名称1
        /// </summary>
        public string Name1 { get; set; }
        /// <summary>
        /// 名称2
        /// </summary>
        public string Name2 { get; set; }
        /// <summary>
        /// 名称3
        /// </summary>
        public string Name3 { get; set; }
        /// <summary>
        /// 名称1的拼音首字母
        /// </summary>
        public string PinYin1
        {
            get { return _Tool.ToPinYin(Name1); }
            protected set { }
        }
        /// <summary>
        /// 名称2的拼音首字母
        /// </summary>
        public string PinYin2
        {
            get { return _Tool.ToPinYin(Name2); }
            protected set { }
        }
        /// <summary>
        /// 名称3的拼音首字母
        /// </summary>
        public string PinYin3
        {
            get { return _Tool.ToPinYin(Name3); }
            protected set { }
        }
        /// <summary>
        /// 分组条件
        /// </summary>
        public string GrpCondition1 { get; set; }
        /// <summary>
        /// 组合分组条件
        /// </summary>
        public string GrpCondition2 { get; set; }
        /// <summary>
        /// 扩展1
        /// </summary>
        public string Extra1 { get; set; }
        /// <summary>
        /// 扩展2
        /// </summary>
        public string Extra2 { get; set; }
        /// <summary>
        /// 扩展3
        /// </summary>
        public string Extra3 { get; set; }
    }
}
